home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Src / Makefile < prev    next >
Encoding:
Makefile  |  1996-07-24  |  4.2 KB  |  145 lines

  1. # Generated automatically from Makefile.in by configure.
  2. #
  3. # Makefile for STk
  4. # Copyright ⌐ 1993-1996 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
  5. # Permission to use, copy, and/or distribute this software and its
  6. # documentation for any purpose and without fee is hereby granted, provided
  7. # that both the above copyright notice and this permission notice appear in
  8. # all copies and derived works.  Fees for distribution or use of this
  9. # software or derived works may only be charged with express written
  10. # permission of the copyright holder.  
  11. # This software is provided ``as is'' without express or implied warranty.
  12. #
  13. #           Author: Erick Gallesio [eg@unice.fr]
  14. #    Creation date: ??-Sep-1993 ??:??
  15. # Last file update: 21-Jul-1996 22:37
  16. #
  17.  
  18. include ../config.make
  19.  
  20. CFLAGS        = $(STKCFLAGS) $(VERS-OPT) $(MACHINE) $(DYNLOAD) $(TK) $(DFLGS) \
  21.           $(OPTS) $(XINCLUDES)  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SIGACTION=1 -DHAVE_SELECT=1 -DSTDC_HEADERS=1  \
  22.           -I. -I../Tk/generic -I../Tk/$(FLAVOR) -I../Tcl -I../Mp \
  23.            $(XINCLUDES)
  24. #
  25. # Add here your object ('.o') files
  26. #
  27. USER_OBJ    = 
  28.  
  29. #
  30. # Scheme interpreter objects
  31. #
  32. SOBJ         = stk.o slib.o primitives.o boolean.o char.o str.o vector.o\
  33.             gc.o port.o  number.o list.o symbol.o\
  34.           read.o print.o eval.o env.o macros.o syntax.o \
  35.           cont.o io.o sport.o promise.o error.o proc.o keyword.o \
  36.           dump.o address.o dynload.o unix.o toplevel.o argv.o \
  37.           extend.o signal.o trace.o dummy.o \
  38.           stklos.o
  39.  
  40. TCLOBJ        = tcl-lib.o tcl-util.o 
  41. TKOBJ        = tk-main.o tk-glue.o tk-util.o 
  42.  
  43. TKLIB        = ../Tk/$(FLAVOR)/libtk.a
  44. TCLLIB        = ../Tcl/libtcl.a
  45. EVTCLLIB    = ../Tcl/libevtcl.a
  46. MPLIB        = ../Mp/$(MP).a
  47. LIBS        =  -ldl -lm $(LIB_DLD) $(LIB_MALLOC)
  48.  
  49. ALLIBS     = $(MPLIB) $(TKLIB) $(TCLLIB) $(EVTCLLIB)
  50. SALLLIBS = $(MPLIB) $(TCLLIB) 
  51.  
  52. default: 
  53.     @echo "You must specify 'STk' or 'Snow'"
  54.  
  55. STk:
  56.     make stk TK="-DUSE_TK"
  57.  
  58. Snow:
  59.     make snow TK="-DNO_TK"
  60.     
  61. dev: 
  62.     make dev-bin TK="-DUSE_TK"
  63.  
  64. tags:
  65.     etags *.[ch] ../Tcl/*.[ch] ../Tk/*.[ch]
  66.  
  67. stk:     userinit.o libstk.a $(ALLIBS)
  68.     /bin/rm -f stk
  69.     $(CC) $(STKLDFLAGS) $(CFLAGS) -o stk userinit.o libstk.a $(ALLIBS) \
  70.           $(XLIBSW) $(LIBS)
  71.  
  72. snow:     userinit.o libsnow.a $(SALLIBS)
  73.     /bin/rm -f snow
  74.     $(CC) $(STKLDFLAGS) $(CFLAGS) -o snow userinit.o libsnow.a $(SALLLIBS)\
  75.            $(LIBS) 
  76.  
  77. dev-bin: userinit.o $(SOBJ) $(USEROBJ) $(TCLOBJ) $(TKOBJ) $(EOBJ) $(ETKOBJ) $(SALLIBS)
  78.     /bin/rm -f stk
  79.     $(CC) $(STKLDFLAGS) $(CFLAGS) -o stk userinit.o $(SOBJ) $(TCLOBJ) \
  80.           $(TKOBJ) $(EOBJ) $(ETKOBJ) $(ALLIBS) $(XLIBSW) $(LIBS)
  81.  
  82. libstk.a: $(SOBJ) $(TCLOBJ) $(TCLOBJ) $(TKOBJ) $(ETKOBJ) $(EOBJ)
  83.     /bin/rm -f libstk.a
  84.     ar rc libstk.a $(SOBJ) $(TKOBJ) $(TCLOBJ) $(ETKOBJ) $(EOBJ)
  85.     $(RANLIB) libstk.a
  86.  
  87. libsnow.a: $(SOBJ) $(TCLOBJ) $(EOBJ)
  88.     /bin/rm -f libsnow.a
  89.     ar rc libsnow.a $(SOBJ) $(TCLOBJ) $(EOBJ)
  90.     $(RANLIB) libsnow.a
  91.  
  92. etags:
  93.     etags *.[ch] ../Tcl/*.[ch] ../Tk/generic/*.[ch] ../Tk/unix/*.[ch]
  94.  
  95. $(MPLIB):
  96.     (cd ../Mp; make $(MP).a)
  97.  
  98. $(TKLIB): 
  99.     (cd ../Tk; make $(TKLIB))
  100.  
  101. $(TCLLIB):
  102.     (cd ../Tk; make $(TKLIB))
  103.  
  104. install:
  105.     @echo "You must specify 'install.stk' or "install.snow'"
  106.  
  107. install.stk: stk
  108.     -if [ ! -d $(bindir) ] ; then mkdir -p $(bindir); fi
  109.     /bin/rm -f $(bindir)/stk $(bindir)/stk-$(VERSION) 
  110.     ln -s $(execdir)/stk $(bindir)/stk-$(VERSION) 
  111.     ln -s $(execdir)/stk $(bindir)/stk 
  112.     -if [ ! -d $(execdir) ] ; then mkdir -p $(execdir); fi
  113.     $(CP) stk $(execdir)
  114.     $(STRIP) $(execdir)/stk
  115.     chmod 0755 $(bindir)/stk-$(VERSION) $(bindir)/stk $(execdir)/stk
  116.  
  117. install.stk.libs:
  118.     -if [ ! -d $(execdir) ] ; then mkdir -p $(execdir); fi
  119.     $(CP) libstk.a $(execdir)
  120.     $(RANLIB) $(execdir)/libstk.a
  121.     -if [ ! -d $(incdir) ] ; then mkdir -p $(incdir); fi
  122.     $(CP) stk.h $(incdir)
  123.  
  124. install.snow: snow
  125.     -if [ ! -d $(bindir) ] ; then mkdir -p $(bindir); fi
  126.     /bin/rm -f $(bindir)/snow-$(VERSION) $(bindir)/snow
  127.     ln -s $(execdir)/snow $(bindir)/snow-$(VERSION) 
  128.     ln -s $(execdir)/snow $(bindir)/snow 
  129.     -if [ ! -d $(execdir) ] ; then mkdir -p $(execdir); fi
  130.     $(CP) snow $(execdir)
  131.     $(STRIP) $(execdir)/snow
  132.     chmod 0755 $(bindir)/snow-$(VERSION) $(bindir)/snow $(execdir)/snow
  133.  
  134. install.snow.libs:
  135.     -if [ ! -d $(execdir) ] ; then mkdir -p $(execdir); fi
  136.     $(CP) libsnow.a $(execdir)
  137.     $(RANLIB) $(execdir)/libsnow.a    
  138.  
  139. clean: 
  140.     @/bin/rm -f  core *.o core config.* \
  141.              stk  libstk.a  stk  run-stk \
  142.              snow libsnow.a snow run-snow
  143.